#include "DHT.h"
#define DHTPIN 10
DHT dht(DHTPIN, DHT11);

float getTemp(void){
  dht.begin();
  float tempDHT = dht.readTemperature();
  if(isnan(tempDHT))
    return 255.0;
  return tempDHT; 
}

void printTemp(void)
{   
  Serial.print("Temperature is: ");
  Serial.println(getTemp());  
}

